/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hoja10_3;
import java.util.Scanner;
public class Familia extends Medicos{
    private int nPacientes;

    public Familia() {
        super();
        Scanner teclado=new Scanner(System.in);
        System.out.println("numero de pacientes-->");
        this.nPacientes=teclado.nextInt();
    }

    public int getnPacientes() {
        return nPacientes;
    }
    
    public void mostrar(){
        super.mostrar();
        System.out.println("\t"+this.nPacientes);
    }
}
